Optimal. Leaf size=63 \[ -\frac{(b d-a e) (B d-A e)}{e^3 (d+e x)}-\frac{\log (d+e x) (-a B e-A b e+2 b B d)}{e^3}+\frac{b B x}{e^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.127972, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056 \[ -\frac{(b d-a e) (B d-A e)}{e^3 (d+e x)}-\frac{\log (d+e x) (-a B e-A b e+2 b B d)}{e^3}+\frac{b B x}{e^2} \]
Antiderivative was successfully verified.
[In] Int[((a + b*x)*(A + B*x))/(d + e*x)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{b \int B\, dx}{e^{2}} + \frac{\left (A b e + B a e - 2 B b d\right ) \log{\left (d + e x \right )}}{e^{3}} - \frac{\left (A e - B d\right ) \left (a e - b d\right )}{e^{3} \left (d + e x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)*(B*x+A)/(e*x+d)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0840515, size = 56, normalized size = 0.89 \[ \frac{-\frac{(b d-a e) (B d-A e)}{d+e x}+\log (d+e x) (a B e+A b e-2 b B d)+b B e x}{e^3} \]
Antiderivative was successfully verified.
[In] Integrate[((a + b*x)*(A + B*x))/(d + e*x)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.012, size = 106, normalized size = 1.7 \[{\frac{bBx}{{e}^{2}}}+{\frac{\ln \left ( ex+d \right ) Ab}{{e}^{2}}}+{\frac{\ln \left ( ex+d \right ) Ba}{{e}^{2}}}-2\,{\frac{\ln \left ( ex+d \right ) Bbd}{{e}^{3}}}-{\frac{aA}{e \left ( ex+d \right ) }}+{\frac{Adb}{{e}^{2} \left ( ex+d \right ) }}+{\frac{Bda}{{e}^{2} \left ( ex+d \right ) }}-{\frac{bB{d}^{2}}{{e}^{3} \left ( ex+d \right ) }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)*(B*x+A)/(e*x+d)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.35431, size = 100, normalized size = 1.59 \[ \frac{B b x}{e^{2}} - \frac{B b d^{2} + A a e^{2} -{\left (B a + A b\right )} d e}{e^{4} x + d e^{3}} - \frac{{\left (2 \, B b d -{\left (B a + A b\right )} e\right )} \log \left (e x + d\right )}{e^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)/(e*x + d)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.210915, size = 138, normalized size = 2.19 \[ \frac{B b e^{2} x^{2} + B b d e x - B b d^{2} - A a e^{2} +{\left (B a + A b\right )} d e -{\left (2 \, B b d^{2} -{\left (B a + A b\right )} d e +{\left (2 \, B b d e -{\left (B a + A b\right )} e^{2}\right )} x\right )} \log \left (e x + d\right )}{e^{4} x + d e^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)/(e*x + d)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.71573, size = 71, normalized size = 1.13 \[ \frac{B b x}{e^{2}} + \frac{- A a e^{2} + A b d e + B a d e - B b d^{2}}{d e^{3} + e^{4} x} + \frac{\left (A b e + B a e - 2 B b d\right ) \log{\left (d + e x \right )}}{e^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)*(B*x+A)/(e*x+d)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.231318, size = 157, normalized size = 2.49 \[{\left (x e + d\right )} B b e^{\left (-3\right )} +{\left (2 \, B b d - B a e - A b e\right )} e^{\left (-3\right )}{\rm ln}\left (\frac{{\left | x e + d \right |} e^{\left (-1\right )}}{{\left (x e + d\right )}^{2}}\right ) -{\left (\frac{B b d^{2} e}{x e + d} - \frac{B a d e^{2}}{x e + d} - \frac{A b d e^{2}}{x e + d} + \frac{A a e^{3}}{x e + d}\right )} e^{\left (-4\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)*(b*x + a)/(e*x + d)^2,x, algorithm="giac")
[Out]